meta name="geo.region" content="US" /> How to Install and Use Tmux on Ubuntu and Linux Mint - WinDow Tips

How to Install and Use Tmux on Ubuntu and Linux Mint

Definition of Tmux (Terminal Multiplexer)

Tmux (Terminal Multiplexer) is a program that we can use to split or dividing the terminal into several parts in one window, usually when we do some work using the terminal. Then we will open two or more terminal windows aligned and moved from one terminal to another.

For those of you who work as SysAdmin, the Programmer or Network Administrator will undoubtedly be inconvenient when working using a terminal window and must move between terminal windows both for remote servers, monitoring systems or devices network, or coding needs.

Benefits of Using Tmux (Terminal Multiplexer)

With the existence of tmux, it allows us to work using several the terminal is only in one window, so our work will be more efficient because there is no need to move from one terminal window to that terminal window other.
As an illustration of what tmux is like, you can see an example of a screenshot of tmux that I run in a terminal window on my laptop.


In the picture above seen in the lower left panel I run htop , while in the right panel I run wavemon (for monitoring wifi signal strength) and also MTR application for monitoring quality of internet connection on the network.

How to Install Tmux on Ubuntu and Linux Mint

If you are interested in installing tmux on your Linux, please follow the guidelines below. Install it is quite easy, open the terminal, and then update the repository first by typing the following command.

$ sudo apt-get update

Then install the tmux application with the following command.

$ sudo apt-get install tmux

If it is installed, you can run it by typing the command tmux in the terminal.

Basic Commands and How to Use Tmux

Next tutorial on how to use Tmux (terminal multiplexer) on the linux terminal, first open the terminal console and run tmux by typing the command below.

$ tmux

Should maximize your linux terminal so that it is free when sharing terminals linux into several parts. To divide the terminal into 2 parts vertically you can by pressing the combination button:

Ctrl-B +% (press Ctrl with B then press the button Shift with 5 ).

Divide 2 terminals horizontally by pressing the combination button:

Ctrl-B + ” (press Ctrl with B then press the button Shift with ).

If How do you want to switch between panels? Navigation that can be used to switch between panels in one tmux window, namely:

Ctrl-B + Arrow-up, Arrow-down, Left-arrow and Arrow-key -right.

Here are some other common combination keys that can be used to operate tmux:

Ctrl-b +% – create a horizontal panel

Ctrl-b + “- make a vertical panel

Ctrl-b + x – close the panel

Ctrl-b + q – displays the panel number

Ctrl-b + o – move to the next panel

Ctrl-b + {- swap panel with previous panel

Ctrl-b +} – switch panel with the next panel

Ctrl-b + top – move to the top panel

Ctrl-b + bottom – move to the bottom panel

Ctrl-b + right – move to the right panel

Ctrl-b + left – move to the left panel

Ctrl-b + t – displays the time in the active panel

Too here, you can already use tmux to divide a few terminals in one window, this way. You no longer need to move between terminal windows, which is quite troublesome. Interesting right?
This paper is only as just an introduction; for further use, you can explore yourself as needed.

Thus this tutorial, hopefully useful and thank you.

0 Response to "How to Install and Use Tmux on Ubuntu and Linux Mint"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel